package com.wonders.common.config.manager;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.wonders.common.config.manager.instance.DicManager;
import com.wonders.common.config.manager.instance.JaxbConfigManager;
import com.wonders.common.config.manager.instance.PropertiesManager;
import com.wonders.framework.config.manager.BaseManager;

/**
 * 配置管理器
 * 
 * @author WuBin
 * 
 */
@Component
public class ConfigManager implements BaseManager {

	@Autowired
	private PropertiesManager propertiesManager;

	@Autowired
	private DicManager dicManager;

	@Autowired
	private JaxbConfigManager jaxbConfigManager;

	public void destroy() {
		propertiesManager.destroy();
		dicManager.destroy();
		jaxbConfigManager.destroy();
	}

	public void init() {
		propertiesManager.init();
		dicManager.init();
		jaxbConfigManager.init();
	}

}
